import moment from 'moment';
import 'moment/locale/zh-cn';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from "react-redux";
import { routerReducer } from "react-router-redux";
import { combineReducers, createStore } from "redux";
import MyRouter from './router/router';
// import { Button } from 'antd';

moment.locale('zh-cn')

// function testReducer(state = 1, action) {
//     return state
// }
const rootReducer = combineReducers({
    // testReducer,
    routing: routerReducer
})
const store = createStore(rootReducer)

render(
    <Provider store={store}>
        {MyRouter()}
    </Provider>,
    // <Button>test</Button>,
    document.getElementById('root')
)
